package com.dgw.controller;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: helloworld-01
 * @description:
 * @author: Mr.Dai
 * @create: 2019-11-24 20:34
 **/
@RestController
@EnableAutoConfiguration
public class HelloController {

    @GetMapping("/index")
    public String getHello() {
        return "hell world!";
    }

    public static void main(String[] args) {
        SpringApplication.run(HelloController.class, args);
    }
}
